<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ include file="/jsp/common.jspf"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>应聘信息完善</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body style="background: #083846">
	<div style="height: 60px "></div>
	<form
		action="${pageContext.request.contextPath }/applicantAction_addApplicant.action"
		method="post">
		<table align="center">
			<tr align="center">
				<td colspan="2"><font color="#878787" size="6">应聘信息<c:if
							test="${requestScope.id==null }">填写
				</c:if> </font>
				</td>
			</tr>
			<tr>
				<td colspan="2"><div style="height: 8px "></div></td>
			</tr>
			<tr>
				<td><font color="#878787">姓名</font>
				</td>
				<td><input type="text" name="name"
					value="${requestScope.applicant.name}"  class="required"/></td>
			</tr>
			<tr>
				<td colspan="2"><div style="height: 8px "></div></td>
			</tr>
			<tr>
				<td><font color="#878787">年龄</font>
				</td>
				<td><input type="text" name="age"
					value="${requestScope.applicant.age}"  class="required digits"/></td>
			</tr>
			<tr>
				<td colspan="2"><div style="height: 8px "></div></td>
			</tr>
			<tr>
				<td><font color="#878787">学号</font>
				</td>
				<td><input type="text" name="rollNumber"
					value="${requestScope.applicant.rollNumber}"  class="required number"/></td>
			</tr>
			<tr>
				<td colspan="2"><div style="height: 8px "></div></td>
			</tr>
			<tr>
				<td><font color="#878787">所在年级</font>
				</td>
				<td><select name="grade">
						<c:if test="${requestScope.applicant!=null}">
							<option>${requestScope.applicant.grade}</option>
						</c:if>
						<c:if test="${requestScope.applicant==null}">
							<c:forEach var="grade" items="${applicationScope.grades}"
								varStatus="num">
								<option>${grade }</option>
							</c:forEach>
						</c:if>
				</select>
				</td>
			</tr>
			<tr>
				<td colspan="2"><div style="height: 8px "></div></td>
			</tr>
			<tr>
				<td><font color="#878787">所修专业</font>
				</td>
				<td><input type="text" name="major"
					value="${requestScope.applicant.major}" class="required"/></td>
			</tr>
			<tr>
				<td colspan="2"><div style="height: 8px "></div></td>
			</tr>
			<tr>
				<td><font color="#878787">应聘职位</font>
				</td>
				<td><select name="positionId">
						<c:if test="${requestScope.applicant!=null}">
							<option value="${position.id }">${requestScope.applicant.position.name}</option>
						</c:if>
						<c:if test="${requestScope.applicant==null}">
							<c:forEach var="position" items="${applicationScope.positions}"
								varStatus="num">
								<option value="${position.id }">${position.name }</option>
							</c:forEach>
						</c:if>
				</select></td>
			</tr>
			<tr>
				<td colspan="2"><div style="height: 8px "></div></td>
			</tr>
			<tr>
				<td><font color="#878787">电话号码</font>
				</td>
				<td><input type="text" name="phoneNumber"
					value="${requestScope.applicant.phoneNumber}" class="required number"/></td>
			</tr>
			<tr>
				<td colspan="2"><div style="height: 8px "></div></td>
			</tr>
			<tr>
				<td><font color="#878787">电子邮箱</font>
				</td>
				<td><input type="text" name="email"
					value="${requestScope.applicant.email}" class="required email"/></td>
			</tr>
			<tr>
				<td colspan="2"><div style="height: 8px "></div></td>
			</tr>
			<tr>
				<td><font color="#878787">自我介绍</font>
				</td>
				<td><c:if test="${requestScope.applicant!=null}">
						<textarea name="description" style="height: 140;width: 172"
							disabled="disabled">
							${requestScope.applicant.description}
				</textarea>
					</c:if> <c:if test="${requestScope.applicant==null}">
						<textarea name="description" style="height: 80;width: 172" class="{required:true,maxlength:120}">
				</textarea>
					</c:if></td>
			</tr>
			<tr>
				<td colspan="2"><div style="height: 14px "></div></td>
			</tr>
			<c:if test="${requestScope.id==null }">
				<tr align="center">
					<td colspan="2"><input type="submit" value=""
						style="width:122px;height:36px;border:none;background:url(imgs/submit_Button.png) no-repeat" />
					</td>
				</tr>
			</c:if>
		</table>
	</form>
</body>
</html>
</html>
